package com.jd.sys.service.impl;

import com.jd.basic.service.impl.BaseServiceImpl;
import com.jd.org.domain.Department;
import com.jd.sys.domain.DictionaryDetail;
import com.jd.sys.domain.DictionaryType;
import com.jd.sys.mapper.DictionaryDetailMapper;
import com.jd.sys.service.IDictionaryDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class DictionaryDetailServiceImpl extends BaseServiceImpl<DictionaryDetail> implements IDictionaryDetailService {
    @Autowired
    DictionaryDetailMapper mapper;
    @Override
    public List<Department> tree() {
        return null;
    }

    @Override
    public DictionaryType getDictionaryType() {
        return mapper.getDictionaryType();
    }

    @Override
    public List<DictionaryDetail> findDetailByDeptId(Long id) {
        return mapper.findDetailByDeptId(id);
    }
}
